Release 10.1A: OpenEdge Deployment:
Managing 4GL Applications
Specifying keyboard mappings
The
PROTERMCAPfile maps key functions to key labels. Table 4–12 shows the mappings as installed. Many of the mappings shown are terminal specific, and certain terminals might not support the function for a particular sequence given in the table.
Using key function syntax
To change any of these mappings or create new ones, use the following syntax:
keyfunctionThe name of a key function.
key-labelThe key label as it appears on the keyboard.
sequenceThe characters transmitted when the key is pressed.
As in other sections of the PROTERMCAP file, string values are assigned using an equal sign (=) and the field is terminated with a colon (:).
For example:
This field in a
PROTERMCAPterminal entry defines the F7 key as transmitting a CTRL+A followed by a capital F followed by a carriage return, and associates use of F7 with theRECALLfunction.The following field defines SCROLL-DOWN to act like PAGE-DOWN:
If you assign the same key label to two or more different key functions, you get a warning message when you start OpenEdge. For example, “You cannot use DELETE for both DELETE-CHARACTER and BACKSPACE.”
If you use a key in the Progress
ONstatement orGO-ONoption only, and do not have to assign it to a standard action, then use the following syntax in thePROTERMCAPentry:
For example, the following entry indicates that pressing F16 sends a capital O followed by a carriage return:
If any of the control code sequences sent when you press a key on the keyboard begin with a control key, you cannot use that control key on your keyboard and the key does not have its normal OpenEdge meaning. For example, if you specify CTRL+F in a control code sequence when creating a key mapping, you can no longer use CTRL+F for FIND. You have to map another key to the FIND action.
The key labels that the UNIX
sttycommand specifies for FLUSH and SUSPEND override thePROTERMCAPfile’s use of the same key labels. For example, if thesttysettings for FLUSH and SUSPEND are CTRL+Q and CTRL+S, you cannot map these key labels to key functions in thePROTERMCAPfile. If you do, you receive no warning; the labels assume theirsttymeanings at run time and OpenEdge ignores them.UNIX stty control functions
The installed
PROTERMCAPfile does not map the Progress functionsABORT,STOP, andUNIX-ENDto key labels. OpenEdge instead uses the key labels that the UNIXsttycommand specifies for QUIT, INTR and EOF respectively.For example, the following
sttycommand specifies that OpenEdge should use CTRL+\ forABORT, CTRL+C forSTOP, and CTRL+D forUNIX-END:
The labels specified by the
sttycommand are of two forms: either CTRL+X or DEL if the DELETE key (octal 177, decimal 127) is used. When entering thesttycommand, indicate the control character by holding down the CTRL key and pressing the specified key; you do not type a caret (^) followed by the key.If an entry in the
PROTERMCAPfile uses one of the key labels specified in thesttycommand, you get a warning message when you start OpenEdge. For example, if thesttycommand specifies the DELETE key for theSTOPfunction and thePROTERMCAPfile specifies the DELETE key for theDELETE-CHARACTERfunction, you receive a warning message.In UNIX environments that do not use the Bourne shell (for example, the Korn shell or C shell), job control allows you to end a job currently executing on a terminal. In most environments this is initiated using CTRL+Z; however, OpenEdge uses this character sequence to clear the editor.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |